import type { FormFieldProps, ValueAccessibleComponent, ValueAccessor } from "solid-form-context";
import type { ValidComponent, ComponentProps, JSXElement } from "solid-js";
import type { FcFormItemLayoutConfig } from "../FcFormItemLayout/types";
import type { UnionClassType } from "@lib/types";


export interface FcFormItemProps<V, C extends ValueAccessibleComponent<V, ValueAccessor<V>> | ValidComponent, P extends ComponentProps<C>, K extends keyof P> extends FormFieldProps<V, C, P, K> {
    label?: JSXElement
    layout?: FcFormItemLayoutConfig
    classList?: UnionClassType
}
